package com.adou.d1;

public class OperDemo {
    public static void main(String[] args) {

        System.out.println(5/2);//2
        System.out.println(5.0/2);//2.5

        // 技巧
        System.out.println(1.0*5/2);//2.5

        // 取余
        System.out.println(1.0*10%2);//0.0

    }
}
